package com.aaa.maintain.controller.api;

import com.aaa.maintain.service.SiteOperLogService;
import com.aaa.security.annotation.MyLog;
import com.aaa.vo.Result;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiImplicitParams;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author 荆豪峰
 * @version 1.0
 * #Date: 2023/3/2 19:55
 */
@Api(value = "/main/siteoperlog", tags = {"#Date: 2023/3/2 19:55"})
@RestController
@RequestMapping("/main/siteoperlog")
public class SiteOperLogController {
    @Autowired
    private SiteOperLogService siteOperLogService;

    /**
     * @author 荆豪峰
     * @date 2023/3/3 12:03
     * @description - 查看操作日志统计图
     * @param
     */
    @ApiOperation(value = "- 查看操作日志统计图", notes = "- 查看操作日志统计图", httpMethod = "POST")
    @MyLog(title="查看操作日志统计图")
    @PostMapping("/siteoperlog")
    public Result siteoperlog(){
        return siteOperLogService.selectoperlog();
    }
}
